package models;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;

import play.data.validation.MaxSize;
import play.data.validation.Required;
import play.db.jpa.Model;
@Entity
public class Candidate extends Model {
	@Required
	public String CandidateName;
    @ManyToOne
    public Question question;
  //  @OneToMany 
//	public List<Answer> answers;
	
    public int Count; 

public Candidate(String Candidate){
this.CandidateName=Candidate;
this.Count=0;
}	

}